<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>jQuery UI Button - Default functionality</title>
  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/south-street/jquery-ui.css" />
  <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
 
  <script>

  $(function() {

    $( "input[type=submit], a, button" )

      .button()

      .click(function( event ) {
        event.preventDefault();
        alert("a");
      });

  });

  </script>

</head>

<body>

 

<button>A button element</button>
<input type="submit" value="A submit button" />
<a href="#">An anchor</a>
</body>

</html>

